package com.ecfront.pojo;

import java.util.Date;
import java.util.Set;

/**
 * 订单表
 * @version 1.0
 * @author zhufeng
 */
public class Pay {
	private int id;//订单ID
	private double price;//订单总价格
	private String username;//收货人姓名
	private String add;//收获地址
	private String phone;//收获人电话
	private int zip;//收货人邮编
	private String monbilePhone;//收货人手机
	private String payBank;//支付银行
	private String payNbr;//支付账号
	private String sendCompany;//发货公司
	private String sendNbr;//发货单号
	private int state;//订单状态，0.为未付款、1.为付款完毕，等卖家发货、2.卖家发货完毕、3.买家收获，交易完成
	private Date createDate;//订单创建时间
	private Date payDate;//付款时间
	private Date sendDate;//发货时间
	private Date finishDate;//订单完成时间
	//以下是多对一关联
	private User user;//用户名ID
	//以下是一对多关联
	private Set payGoods;//订单里的商品列表
	
	
	public Pay(){}
	public Pay(int id, double price, String username, String add, String phone,
			int zip, String monbilePhone, String payBank, String payNbr,
			String sendCompany, String sendNbr, Date createDate, Date payDate,
			Date sendDate, Date finishDate, User user, Set payGoods) {
		super();
		this.id = id;
		this.price = price;
		this.username = username;
		this.add = add;
		this.phone = phone;
		this.zip = zip;
		this.monbilePhone = monbilePhone;
		this.payBank = payBank;
		this.payNbr = payNbr;
		this.sendCompany = sendCompany;
		this.sendNbr = sendNbr;
		this.createDate = createDate;
		this.payDate = payDate;
		this.sendDate = sendDate;
		this.finishDate = finishDate;
		this.user = user;
		this.payGoods = payGoods;
	}
	public Set getPayGoods() {
		return payGoods;
	}
	public void setPayGoods(Set payGoods) {
		this.payGoods = payGoods;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getAdd() {
		return add;
	}
	public void setAdd(String add) {
		this.add = add;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMonbilePhone() {
		return monbilePhone;
	}
	public void setMonbilePhone(String monbilePhone) {
		this.monbilePhone = monbilePhone;
	}
	public String getPayBank() {
		return payBank;
	}
	public void setPayBank(String payBank) {
		this.payBank = payBank;
	}
	public String getPayNbr() {
		return payNbr;
	}
	public void setPayNbr(String payNbr) {
		this.payNbr = payNbr;
	}
	public String getSendCompany() {
		return sendCompany;
	}
	public void setSendCompany(String sendCompany) {
		this.sendCompany = sendCompany;
	}
	public String getSendNbr() {
		return sendNbr;
	}
	public void setSendNbr(String sendNbr) {
		this.sendNbr = sendNbr;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getPayDate() {
		return payDate;
	}
	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
	public Date getSendDate() {
		return sendDate;
	}
	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}
	public Date getFinishDate() {
		return finishDate;
	}
	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getZip() {
		return zip;
	}
	public void setZip(int zip) {
		this.zip = zip;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
}
